package com.alks.entity.data.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import java.math.BigDecimal;

@Getter
@Setter
@NoArgsConstructor
@ToString
@TableName("SD_DEPARTMENT")
public class SdDepartment {


    @ApiModelProperty("公司代码 id")
    @TableField("COMPANY_ID")
    private String companyId;

    @ApiModelProperty("部门代码 id")
    @TableField("DEPT_NO")
    @TableId
    private String deptNo;

    @ApiModelProperty("部门名称")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty("英文名称")
    @TableField("ENG_NAME")
    private String engName;

    @ApiModelProperty("备注")
    @TableField("REMARK")
    private String remark;

    @ApiModelProperty("核算类型 成本 Y 非成本 N")
    @TableField("TOTAL_FLAG")
    private String totalFlag;

    @ApiModelProperty("部门类型 生产部门 P 幕僚部门 M")
    @TableField("DEPT_FLAG")
    private String deptFlag;

    @ApiModelProperty("部门目录")
    @TableField("DEPT_LEVEL")
    private String deptLevel;

    @ApiModelProperty("父目录")
    @TableField("PARENT_LEVEL")
    private String parentLevel;

    @ApiModelProperty("工厂名称")
    @TableField("FACTORY")
    private String factory;

    @TableField("DEPT_PERSONS")
    private BigDecimal deptPersons;
}
